<?php
function sendsms($des,$username,$password,$pnumber, $info){
	//destination
	$url = $des;
	//option soap
	$options = array(
			'soap_version'=>SOAP_1_2,
			'exceptions'=>true,
			'trace'=>1,
			'cache_wsdl'=>WSDL_CACHE_BOTH
	);
	//declare soap
	$client =new SoapClient($url, $options);
	//send to service
	$respone = $client->SmsMT(array('user'=>$username,'pass'=>$password,'sdt'=>$pnumber,'infor'=>$info));
	return $respone;
}